﻿using System;
using System.Collections.Generic;
using System.Text;

namespace program01
{
    public class Person
    {
        //姓名属性
        //public string FullName { get; set; }//get:读取 set:修改
        //名
        public string FirestNmae { set; get; }
        //姓
        public string LastNmae { set; get; }
        //年龄 
        public int Age { get; set; } = 20;
        //性别 只读private
        public bool Sex { get; private set; } = true;

        //表达式体的属性
        public string FullName => $"{FirestNmae}{LastNmae}";

    }
}
